function ret=vectorLength(vect)
 ret=0;
 for j =1:length(vect)
  ret=ret+vect(j)^2;
 endfor
 ret=sqrt(ret);
endfunction
